<?php
require_once '../include.php';
checkLogined();
//获得参数值
$act = $_REQUEST['act'];
//$id = $_REQUEST['id'];
if($act == 'logout'){
	logout();
}elseif($act == 'addAdmin') {
	addAdmin();
}elseif($act == 'addCate') {
	addCate();
}elseif($act == 'editAdmin') {
	$id = $_REQUEST['id'];
    editAdmin($id);
}elseif($act == 'delAdmin') {
	$id = $_REQUEST['id'];
	delAdmin($id);
}elseif($act=='editCate'){
	$id=$_REQUEST['id'];
	editCate($id);
}